package com.yjd.comm.project.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.project.model.ProjectCaseModel;

/**
 * <b>description</b>：项目案例业务接口<br>
 * <b>time</b>：2017-06-27 08:55:25 <br>
 * <b>author</b>：  yangchangyan@yijiedai.com
 */
public interface IProjectCaseService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public ProjectCaseModel insert(ProjectCaseModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(ProjectCaseModel model) throws Exception;

	/**
	 * 创建或者更新,大于等于1表示成功，其他失败
	 *
	 * @param pcm
	 * @return
	 * @throws Exception
	 */
	public int createOrUpdate(ProjectCaseModel pcm, String caseDetail) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param case_id
	 * @return
	 * @throws Exception
	 */
	public int delete(long case_id) throws Exception;

}
